using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Events;

public class GameRoot : MonoBehaviour
{
    public static GameRoot Instance { get; private set; }
    public SceneSystem scenesystem { get; private set; }
    private void Awake()
    {
        if (Instance == null)
            Instance = this;
        else Destroy(gameObject);
        scenesystem = new SceneSystem();
        DontDestroyOnLoad(gameObject);
    }
    private void Start()
    {
        scenesystem.SetScene(new StartScene());
    }
}
